package org.x.user.dto;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class UserQueryDTO {  // ✔️ 推荐以 DTO 结尾
    @NotNull(message = "页号不能为空")
    private Integer page =1;
    @NotNull(message = "每页多少条数据，不能为空")
    private Integer size =10;
    private String username;
    private String realName;
    private Long deptId;
    private Long roleId;
    private Integer status;
}